package backup;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

// 这是一个 springboot 应用
@SpringBootApplication(scanBasePackages = {"com.test.controller"})
public class OtherPackageApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(OtherPackageApplication.class, args);
        System.out.println("========================================================");
        for (String beanDefinitionName : run.getBeanDefinitionNames()) {
            System.out.println(beanDefinitionName);
        }
        System.out.println("========================================================");
    }
}
